package cn.jiahua.hospital.service;

import cn.jiahua.hospital.pojo.News;

import java.util.Date;
import java.util.List;
import java.util.Map;

import cn.jiahua.hospital.dto.Page;
import org.apache.ibatis.annotations.Param;

/**
 * Created by shang-pc on 2015/11/7.
 */
public interface NewsService {


    public News getNewsById(Integer newsId);

    public List<News> getNewsListByMap(Map<String, Object> param);

    public Integer getNewsCountByMap(Map<String, Object> param);

    public Integer qdtxAddNews(News news);

    public Integer qdtxModifyNews(News news);

    public Integer qdtxDeleteNewsById(Integer newsId);

    public Integer qdtxBatchDeleteNews(String ids);

    public Page<News> queryNewsPageByMap(Map<String, Object> param, Integer pageNo, Integer pageSize);

    //分页模糊查询
    public List<News> newsSelectPage(@Param(value = "newsTitle") String newsTitle,
                                     @Param(value = "newsAuthor") String newsAuthor,
                                     @Param(value = "pageNo") Integer pageNo,
                                     @Param(value = "pageSize") Integer pageSize);

    //查询新闻总数
    public int newsSelectCount(@Param(value = "newsTitle") String newsTitle,
                               @Param(value = "newsAuthor") String newsAuthor);

}
